<?php
/* TODO: Add code here */
require('config/globalconfig.php');
?>
<?php
include_once('classes/user_sphinx_search.php');
include_once('classes/user_catalogue.php');
//user_common::writeLog('insert',0);
include_once('classes/user_section.php');
include_once('classes/user_property.php');
include_once('classes/user_faq.php');
include_once('classes/editor.php');
$objSection = new user_section($objConnection);
$objCatalogue = new user_catalogue($objConnection);
$objProperty = new user_property($objConnection);
$objFAQ = new user_faq($objConnection);
if ($_pgR["act"]==user_property::ACT_GET)//user_common::ACT_ADD_LIKE)//add new record like.php Trường hợp content chưa có like_id
{		
	$sectID = $_pgR["sect"];
	$strID = $_pgR["num"];
	$arrProperty= $objProperty->getPropertyBySection($sectID);
	//print_r($arrProperty);
	if($arrProperty)
	{
		$strHTML = $objProperty->outputSelectHTMLProperty($arrProperty);
		echo user_common::convertToXML($arrHeader, array('rs', 'inf','num'), 
				array(1, $strHTML,$strID), array(0, 1,1));
		return;	
	}
	else
	{
		echo user_common::convertToXML($arrHeader, array('rs','inf','num'),array(0,'Không có thuộc tính nào trong ngành hàng được chọn!',$strID),array(0,1,1));
		return ;
	}
}

?>